<template>
     <div>
      <departmentstore_head></departmentstore_head>
<router-view></router-view>
<departmentstore_foot></departmentstore_foot>
     </div>
</template>
 
<script>

import { mapGetters,mapActions,mapMutations,mapState } from 'vuex';
import  Mock  from 'mockjs';
import moment from 'moment';
export default {
    components:{
            departmentstore_head:()=>import('@/components/header/index.vue'),
            departmentstore_foot:()=>import('@/components/footer/index.vue'),
         
              },
    data() {
          return {

                 }
         },
    computed:{

             },
    created() {

              },
    mounted() {

              },
    watch:{

          },

    beforeCreate(){
           const user={
            id:Mock.mock('@id()'),
            name:Mock.mock('@cname()'),
            nickname:Mock.mock('@cword(5)'),
            password:Mock.mock('@word(32)'),
           }
          
      //      console.log(user)
    this.$store.dispatch('customer/login',user)
                  },
    beforeDestroy() {

                    },
    deactivated() {

                   },
}
</script>
<style>

    
</style>


